<?php /*
 * @see eve_ranks_admin_list()
 * @see template_preprocess_eve_ranks_admin_list(&$summary)
 */ ?>
<table>
<tr>
	<th> Rank Name </th>
	<th> Rank Image </th>
	<th> Senior? </th>
	<th> Related Role </th>
	<th colspan="4">Actions</th>
</tr>
<?php
	global $base_url;
 	foreach ($ranks as $rank) { 
?>
<tr>
	<td> <?php print $rank['rank_name']; ?> </td>
	<td> <img src='<?php print $rank['rank_image'] ?>'/> </td>
	<td> <?php print $rank['is_senior_officer']==1 ? "yes" : "no"; ?> </td>
	<td> <?php print $rank['related_role_name']; ?></td>
	<td> <?php print l(t('promote'), 'admin/settings/eve_ranks/promote/'. $rank['rank_id']); ?> </td>
	<td> <?php print l(t('demote'), 'admin/settings/eve_ranks/demote/'. $rank['rank_id']); ?> </td>
	<td> <?php print l(t('edit'), 'admin/settings/eve_ranks/edit/'. $rank['rank_id']); ?> </td>
	<td> <?php print l(t('delete'), 'admin/settings/eve_ranks/delete/'. $rank['rank_id']); ?> </td>
</tr>
<?php } ?>
</table>
